package sk.xorty.flow.filters;

import org.springframework.integration.Message;
import org.springframework.stereotype.Component;
import sk.xorty.domain.Trade;

@Component
public class NewTradeFilter {

    public boolean accept(Message<?> message) {
        Trade t = (Trade) message.getPayload();
        return "new".equalsIgnoreCase(t.getStatus());
    }
}
